var mongoose = require('mongoose'),
    Project = mongoose.model('Project'),
    Configuration = mongoose.model('Configuration'),
exports.getProject = function(req, res) {
  Project.findOne({ userid: 'projectA' })
  .exec(function(err, project) {
    if (!project){
      res.json(404, {msg: 'Project Not Found.'});
    } else {
      res.json(project);
    }
  });
};